var stu = {
    id:1001,
    name:'tom',
    age:12,
    friend:['fairy','terry','larry'],
    clazz:{
        id:1,
        name:'1班',
        desc:'已经有50个同学'
        
    }
}
console.log(stu);
console.log(stu.name);
console.log(stu.clazz.name);
console.log(stu.friend[0]);